package com.lensyn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lensyn.service.impl.DemoService;



@RestController
@RequestMapping("/aop")
public class AopController {
    @Autowired
    private DemoService demoService;
    
    @RequestMapping(value="/test1",method = RequestMethod.GET)
    public String run(){
        demoService.run("huangjuan",100);
        return "Controller completed1!";
    }
    
    @RequestMapping(value="/test2",method = RequestMethod.GET)
    public String test(){
        demoService.test("zhutou",300);
        return "Controller completed2!";
    }
}